package admin

import (
	"net/http"

	"suci-go-zero/internal/svc"
)

func StaticHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		http.StripPrefix("/api/common/static/", http.FileServer(http.Dir("static"))).ServeHTTP(w, r)
	}
}
